<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    <style type="text/css">
        .l{

            align-content: center;
            width: 500px;
            height: 400px;
            margin-top: 250px;
            margin-left: 600px;
            margin-right: 500px;
        }
    </style>
</head>
<body style="background: url(/images/1.jpg)">

<div class="l">
<form action="find">
    <input type="text" name="name" placeholder="账号" class="form-control">
    <button class="btn btn-primary">搜索</button>
    <a href="addUser">增加用户</a>
    <a href="logon">注销</a>

    <table border="1" cellpadding="1" cellspacing="0" width="310">
        <tr>
            <th>账号</th>
            <th>密码</th>
            <th>姓名</th>
            <th>邮箱</th>
            <th>信息</th>
            <th>操作</th>
        </tr>
       <tr  th:each="user:${list}">
           <td th:text="${user.name}"></td>
           <td th:text="${user.password}"></td>
           <td th:text="${user.orders}"></td>
           <td th:text="${user.email}"></td>
           <td th:text="${user.message}"></td>
           <!--<td th:text=""></td>-->
           <td ><a th:href="${'deleteUser?id='+user.id}">删除</a>&nbsp;&nbsp;
               <a th:href="${'editUserId?id='+user.id}">修改</a></td>

       </tr>
    </table>
</form>

<a href="javascript:history.back(-1)">返回上一页</a>
</div>
</body>

</html>